#ifndef WIDGET_H
#define WIDGET_H
#include <QString>
#include <stdlib.h>
#include <time.h>
#include <QWidget>
#include <QTimer>
#include <QDebug>
namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
     void getzjnum();
     void getusernum();
     void quch(int,int);
     void duijiang();
     int isSave(int nums[],int len,int tag);
     int suiji();
private:
    Ui::Widget *ui;
    int usernum[7] = {0};
    int zjnum[7] = {0};
    int num = 0;
    int useri = 0;
    QTimer *timer;
public slots:
    void start();
    void getnum();
};

#endif // WIDGET_H
